<template>
  <div>
    <HmLife>
      <div id="msg" :msg="msg">
        {{ msg }}
      </div>

      <button @click="msg = '传智'"></button>
    </HmLife>
  </div>
</template>
  
  <script>
export default {
  beforeCreate() {
    console.log(this.msg);
  },
  created() {
    console.log(this.msg);
    console.log(document.querySelector("#msg"));
  },
  beforeMount() {
    console.log();
  },
  mounted() {
    console.log(document.querySelector("#msg"));
  },
  beforeUpdate() {
    //   console.log(document.querySelector("#msg"));
  },
  updated() {
    //   console.log(document.querySelector("#msg"));
  },
  data() {
    return {
      msg: "henshin",
    };
  },
};
</script>
  
  <style>
</style>